import Vue from 'vue'
import App from './App.vue'
// 引入路由
import router from './router'
import axios from 'axios'
// 引入vuex状态管理
import store from './store'
// 使用swiper
import VueAwesomeSwiper from 'vue-awesome-swiper'
// 引入swiper样式
import 'swiper/css/swiper.css'
import './assets/icon/iconfont.css'

Vue.use(VueAwesomeSwiper)
axios.defaults.baseURL = 'http://localhost:3000'
// 配置携带cookies
// axios.defaults.withCredentials = true
Vue.prototype.$http = axios

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
